#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() 
{
    int a,b,c;
    while (scanf("%d", &a) != EOF) 
    { 

        for (int b = 1;b <= a;b++)
        {
            for (int c = 1;c<=a;c++)
            {
                printf("* ");
            }
            printf("\n");
        }
    }
    return 0;
}